#!/usr/bin/python

# 文件名就是模块
def printStr(str):
    return str
    
def printList(list):
    return list

#获取全局变量和局部变量
globalVar = 1
def globalVar():
    str = 'abc'
    print(locals())
print(globals())